# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=coeurl
pkgver=0.2.0
pkgrel=0
pkgdesc="Asynchronous wrapper around libcurl"
url="https://nheko.im/nheko-reborn/coeurl"
arch="all"
license="MIT"
makedepends="cmake curl-dev libevent-dev meson spdlog-dev"
subpackages="$pkgname-dev"
source="https://nheko.im/nheko-reborn/coeurl/-/archive/v$pkgver/coeurl-v$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
de5f405b6993a33cf958996430d0f7a25cccb47488c3c2ce44525630e533a5acd1d630e2293cdae74befc627de81b211b4a9b6d53138f3de1d92f267f016e4fb  coeurl-v0.2.0.tar.bz2
"
